package vip.xiaonuo.modular.sync;

import org.springframework.context.ApplicationEvent;

public class BuildingChangeEvent extends ApplicationEvent {

  private Long newBuildingId;
  private Long oldBuildingId;
  private Long deviceId;

  public BuildingChangeEvent(Object source) {
    super(source);
  }

  public BuildingChangeEvent(Object source, Long newBuildingId, Long oldBuildingId, Long deviceId) {
    super(source);
    this.newBuildingId = newBuildingId;
    this.oldBuildingId = oldBuildingId;
    this.deviceId = deviceId;
  }

  public Long getNewBuildingId() {
    return newBuildingId;
  }

  public Long getDeviceId() {
    return deviceId;
  }

  public void setDeviceId(Long deviceId) {
    this.deviceId = deviceId;
  }

  public void setNewBuildingId(Long newBuildingId) {
    this.newBuildingId = newBuildingId;
  }

  public Long getOldBuildingId() {
    return oldBuildingId;
  }

  public void setOldBuildingId(Long oldBuildingId) {
    this.oldBuildingId = oldBuildingId;
  }
}
